<%@ page import="com.lanou3g.HW_0517.pojo.User" %>
<%@ page import="com.lanou3g.HW_0517.common.Constant" %><%--
  Created by IntelliJ IDEA.
  User: dllo
  Date: 18/5/17
  Time: 下午7:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    User user = (User) session.getAttribute(Constant.Session.USER);
%>
欢迎:<%=user.getUsername()%>

<form action="<%=request.getContextPath()%>/search" method="get">
    搜索:<input name="key">
    <input type="submit" value="立即搜索">
</form>

</body>

</html>
